﻿using DuToanT2.Models.DomainBase;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DuToanT2.Models
{
    public class VatTu : EntityBase
    {
        [Required]
        [StringLength(150)]
        [Display(Name = "Tên vật tư")]
        public string Name { get; set; }

        [Required]
        [StringLength(20)]
        [Display(Name = "Loại vật tư")]
        public string Classified { get; set; }

        public int CalculationUnitId { get; set; }

        public virtual CalculationUnit CalculationUnit { get; set; }

        public virtual ICollection<DinhMuc_ThanhPhanHP> DinhMuc_ThanhPhanHPs { get; set; }

        public virtual ICollection<GiaThongBao_ChiTiet> GiaThongBao_ChiTiets { get; set; }
    }
}
